package com.sunwayhorizo.health.platform.security.dao.impl;

import javax.ejb.Stateless;

import org.jboss.seam.annotations.Name;

import com.sunwayhorizo.health.platform.base.BaseManager;
import com.sunwayhorizo.health.platform.security.dao.SecurityPermissionRoleDao;

@Stateless
@Name("SecurityPermissionRoleDao")
public class SecurityPermissionRoleImpl extends BaseManager implements SecurityPermissionRoleDao{

	@Override
	public void deleteSecurityPermissionByRoleId(String roleId) {
		super.entityManager2.createQuery("delete from SecurityPermissionRole spr where spr.role.roleId = :roleId").setParameter("roleId", roleId).executeUpdate();
		super.flushClear(entityManager2);
	}
	
}